/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package creditwork;

import java.util.Scanner;

/**
 *
 * @author Student
 */
public class Creditwork {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) 
    {
        // TODO code application logic here
        Scanner scan = new Scanner(System.in);
        String strToReverse = new String();
        
        System.out.println("Please type the phrase to be reversed:");
        strToReverse = scan.nextLine();
        strToReverse = new StringBuffer(strToReverse).reverse().toString();
        System.out.println("The phrase is: \n" + strToReverse);
    }  
}
